import { TextLoader } from "langchain/document_loaders/fs/text";

const loader = new TextLoader("data/test.txt");

const result = await loader.load();

console.log(result)